import { HTTP } from '../utils/http.js'
class taskhallHttp extends HTTP {
  // 任务首页
  getRedpacketTaskInfo () {
    return this.request({
      url: 'luckdraw/RedPackageTaskList',
      method: 'POST',
      isShowLoading:false
    })
  }

  // ------------------------------------------------

  // 获取个人信息
  getUserInfo (data) {
    return this.request({
      url: 's/userinfo/UserInfo',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  // 获取个人信息
  getMyInfo (data) {
    return this.request({
      url: 's/userinfo/GetMyInfo',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  //每日签到信息
  signDayInfo (data) {
    return this.request({
      url: 's/lottery/SignDayInfo',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  //签到
  signDay (data) {
    return this.request({
      url: 's/lottery/SignDay',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  // 签到七天奖励
  sevenSignDay (data) {
    return this.request({
      url: 's/lottery/SignReward',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  //豆子翻倍
  getPeaDouble (data) {
    return this.request({
      url: 's/lottery/PeaDouble',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  //任务信息
  QuestInfo (data) {
    return this.request({
      url: 's/lottery/QuestInfo',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }

  //红包任务详情
  redpackageTaskDetails(data) {
    return this.request({
      url: 'luckdraw/RedpackageTaskDetails',
      method: 'POST',
      data: data,
      isShowLoading: false
    })
  }

  //获取推广合成海报
  getPicMaterialV4(data) {
    return this.request({
      url: 'wxgroup/PicMaterialV4',
      method: 'POST',
      data: data,
      isShowLoading: false
    })
  }
  //看广告
  createRedPackageAdvert(data) {
    return this.request({
      url: 's/luckdraw/CreateRedPackageAdvert',
      method: 'POST',
      data: data,
      isShowLoading: false
    })
  }

  //领取
  receiveRedpackage(data) {
    return this.request({
      url: 's/luckdraw/ReceiveRedpackage',
      method: 'POST',
      data: data,
      isShowLoading: false
    })
  }

  //任务UV
  UserUv(data) {
    return this.request({
      url: 's/luckdraw/UserUv',
      method: 'POST',
      data: data,
      isShowLoading: false,
      isShowerrMsg:false
    })
  }
  //弹窗
  mainPopup(data) {
    return this.request({
      url: 's/luckdraw/Popup',
      method: 'POST',
      data: data,
      isShowLoading: false,
      isShowerrMsg: false
    })
  }
}


export { taskhallHttp }
